LGF_TaddrToString (FC / V3.0.1)


Author: Siemens Digital Industry

Short description

The system data type TADDR_Param contains address information consisting of an IPV4 address and the port number.

The LGF_TaddrToString function converts a TADDR_Param system data type variable to a String data type variable.

Block Interface

LGF_TaddrToString (FC)
TADDR_Param  ipAdressTaddr Ret_Val  String
    
   

Input parameter

IdentifierData typeDescription
ipAdressTaddrTADDR_ParamIP-Address and Port number to convert into string

Output parameter

IdentifierData typeDescription
Ret_ValStringIP-Address and Port number as string

Functional description

The function converts the IPV4 address with or without port number. The system data type TADDR_Param is a structured data type. This structure contains the variable REM_PORT_NR. If this variable is 0, no port is written to the parameter Ret_Val.

####### Example Result at Ret_Val:

Change log

Version & DateChange description
01.00.00Siemens Industry Online Support
19.01.2017First released version
01.00.01Siemens Industry Online Support
17.08.2018Upgrade: TIA V15 Update 2
01.00.02Industry Online Support
23.11.2018Upgrade: TIA V15.1
01.00.03Simatic Systems Support
17.06.2019Standard header and block parameters update
01.00.04Simatic Systems Support
10.07.2019Refactoring of While to Do/While and constants inserted
01.00.05Simatic Systems Support
30.07.2019Add ENO handling
03.00.00Simatic Systems Support
23.04.2020Set version to V3.0.0
Harmonize the version of the whole library
03.00.01Simatic Systems Support
23.02.2021Insert documentation